package Day6Zuoye.Airplane;

public class Warplane {
    private int warheads;//弹头数
//发射导弹
    public int launchmissile(int warheads){
        warheads--;
        return warheads;
    }
//低空盘旋
    public void Circlelow(){
        System.out.println("低空盘旋...");
    }

    public Warplane(int warheads) {
        this.warheads = warheads;
    }

    public int getWarheads() {
        return warheads;
    }

    public void setWarheads(int warheads) {
        this.warheads = warheads;
    }
}
